<?php
// +----------------------------------------------------------------------
// | HKCMS 用户验证规则
// +----------------------------------------------------------------------
// | Copyright (c) 2012-2019 http://www.hkcms.cn, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 广州恒企教育科技有限公司 <admin@hkcms.cn>
// +----------------------------------------------------------------------

namespace app\content\validate;

use think\Validate;

class Position extends Validate
{
    protected $rule = [
        'name' => 'require|unique:Position',
    ];

    protected $message  =   [
        'name.require' => '推荐位名称不能为空！',
        'name.unique' => '该推荐位已经存在！',
    ];

    protected $scene  = [
    	'edit' => ['name'=>'require'],
    ];

}